/*
 * EasyBounceGameView.h
 *
 *  Created on: 2009-3-14
 *      Author: Wayne
 */

#ifndef EASYBOUNCEGAMEVIEW_H_
#define EASYBOUNCEGAMEVIEW_H_


// INCLUDES
#include <aknview.h>

// CONSTANTS
// UID of view
const TUid KGameViewId = {2};

class CEasyBounceGameContainer;

// CLASS DECLARATION
class CEasyBounceGameView : public CAknView
	{
public:
	// New methods
	
	// Constructors
	void ConstructL();

	/**
	 * CEasyBounceGameView.
	 * C++ default constructor.
	 */
	CEasyBounceGameView();
	

	/**
	 * ~CEasyBounceGameView
	 */
	~CEasyBounceGameView();

public:
	// Functions from base classes
    
    /**
    * Return Uid
    */
    TUid Id() const;

    /**
    * Handle Commands
    */
    void HandleCommandL(TInt aCommand);

    /**
    * Handle Size changes
    */
    void HandleClientRectChange();

private:

    /**
    * From AknView, Activates view
    */
    void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
        const TDesC8& aCustomMessage);

    /**
    * From AknView, Deactivates view
    */
    void DoDeactivate();

private:
	
	CEasyBounceGameContainer* iContainer;

	};


#endif /* EASYBOUNCEGAMEVIEW_H_ */
